<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//var reg=new RegExp('junquan');
			var reg=/junquan/;
			var str='www.guojunquan.com';
			var result=reg.test(str);
			var result2=reg.exec(str);
			document.write(result);
			document.write(result2);
		</script>
	</head>
	<body>
	
	</body>
</html>